import request from '@/utils/request'
// import qs from 'qs'  //处理json数据


export const show=()=>   //会员表的显示所有
  request({
    url:"tmember/show",
    method:"get"
  })
  export const updi=(id,zt)=>  //会员表的修改
  request({           
    url:'tmember/updi/'+id,
    method:"put",
    data: zt
  })
  export const add=(arr)=>  //会员表的添加
  request({           
    url:"tmember/add",
    method:"post",
    data:arr
  })
  export const queryid=(id)=>      
  request({           
    url:"tmember/queryid/"+id,
    method:"put",
  })
  export const update=(arr)=>
  request({           
    url:"tmember/update",
    method:"post",
    data:arr
  })

  export const show2=()=>
  request({
    url:"tbody/show",
    method:"get"
  })

  export const wtshow=()=>   //
  request({
    url:"tbody/wtshow",
    method:"get"
  })

  export const wtshow2=()=>   //
  request({
    url:"tment/wtshow",
    method:"get"
  })


  export const daadd=(arr,id)=>  //答案表的添加 体质测评
  request({           
    url:"tbody/daadd/"+id,
    method:"put",
    data:arr
  })
  export const daadd2=(arr,id)=>  //答案表的添加 心理测评
  request({           
    url:"tment/daadd/"+id,
    method:"put",
    data:arr
  })

  export const tzcpqueryid=(id)=>   //体检测评修改的查询 
  request({           
    url:"tbody/tzcpqueryid/"+id,
    method:"put",
  })
 
  export const tzcpqueryid2=(id)=>   //心理测评修改的查询 
  request({           
    url:"tment/tzcpqueryid/"+id,
    method:"put",
  })
  

  
  export const daupdate=(arr,id)=>  //答案表的修改
  request({           
    url:"tbody/daupdate/"+id,
    method:"put",
    data:arr
  })

  export const daupdate2=(arr,id)=>  //答案表的修改
  request({           
    url:"tment/daupdate/"+id,
    method:"put",
    data:arr
  })



  export const xlcpshow=()=>      //心理测评主页的显示所有
  request({
    url:"tment/show",
    method:"get"
  })

  




